package com.louzhu.gulimall.ware.feign;

import com.louzhu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 远程调用商品服务接口
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {

    // 根据skuId获取商品 sku
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);
}
